<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!-- TemplateBeginEditable name="doctitle" -->
	<title>Consultar clientes</title>
	<!-- TemplateEndEditable -->
	<!-- TemplateBeginEditable name="head" -->
	<!-- TemplateEndEditable -->
	
	<link rel="stylesheet" href="style.css" type="text/css">
</head>

<body>

<div class="container">
  <div class="header"><a href="#"><img src="banner.jpg" alt="Insert Logo Here" name="Insert_logo" width="960" height="90" id="Insert_logo" style="background: black; display:block;" /></a>
    <!-- end .header --></div>
  <div class="sidebar1">
    <ul class="nav">
      <li><a href="paginaPrincipal.jsp">P&aacute;gina Principal</a></li>
      <li><a href="/Concessionaria/Concessionaria?operacao=listarClientes&corrente=1">Clientes</a></li>      
      <li><a href="/Concessionaria/Concessionaria?operacao=cadastrarClientes&corrente=6">Cadastrar</a></li>      
    </ul>
    
    	
	<%@page import="java.util.* "%>
	<%@page import="org.dw.concessionaria.BEAN.ClienteBEAN" %>

    <table width="180" border="0" style="text-align:center">
	  <tr>
	    <th scope="row" bgcolor="#ADB96E">Login</th>
	  </tr>
	  <tr>
	    <th scope="row">Ol&aacute;, <%=session.getAttribute("logado") %> </th>
	  </tr>
	  <tr> 
	  	<td><a href="/Concessionaria/Concessionaria?operacao=logoff&corrente=1">Logoff</a></td>
	  </tr>
	</table>
    	<%
    	ClienteBEAN cliente = new ClienteBEAN();		
    	cliente = (ClienteBEAN)session.getAttribute("clienteSelecionado");
		%>

    <!-- end .sidebar1 --></div>
  <div class="content">
    <h1>Dados do Cliente</h1>
    <form id="form1" name="form1" method="post" action="/Concessionaria/Concessionaria">
    <div class="table_form">
    <table width="698" border="0" style="text-align: left" cellspacing="10px">
      <tr>
        <th width="182" scope="row">RG</th>
        <td width="360"><input name="rg" type="text" dir="ltr" size="60" readonly value="<%=cliente.getRg()%>"/></td>
      </tr>
      <tr>
        <th width="182" scope="row">Nome</th>
        <td width="360"><input name="nome" type="text" dir="ltr" size="60" value="<%=cliente.getNome()%>"/></td>
      </tr>
      <tr>
        <th width="182" scope="row">Telefone</th>
        <td width="360"><input name="telefone" type="text" dir="ltr" size="60" value="<%=cliente.getTelefone()%>"/></td>
      </tr>
      
      <tr>
        <th width="182" scope="row">Endereco</th>
        <td width="360"><input name="endereco" type="text" dir="ltr" size="60" value="<%=cliente.getEndereco()%>"/></td>
      </tr>
     
      <tr></tr>
      <tr></tr>
      <tr>
      <th align="center">&nbsp;</th>   
      <th align="center">
      	<input name="editar" type="submit"  value="Alterar" style="width:130px; height:27px"/>       
      	<input name="editar" type="submit"  value="Remover" style="width:90px; height:27px"/>
        <input name="editar" type="submit"  value="Cancelar" style="width:90px; height:27px"/></th>
      <th>&nbsp;</th>      
      </tr>      
    </table>        
    </div>
        <input type="hidden" size="3" name="corrente" value="71" />
    </form>
    <p>&nbsp;</p>
    <h2>&nbsp;</h2>
   
    
    <!-- end .content --></div>
  <div class="footer">
    <p>    
    </p>
    <!-- end .footer --></div>
  <!-- end .container --></div>
</body>
</html>
